#ifndef __LIST_ST_SCAN_H
#define __LIST_ST_SCAN_H

#include "stdint.h"

#ifdef __cplusplus
extern "C"
{
#endif

	typedef struct
	{
		void *list;		   
		int8_t e_size;	   
		int8_t list_len;   
		int8_t ret_at_err; 
		int8_t st_scan;	   
	} list_st_scan_type;

	void list_e_set(const list_st_scan_type *tab, void *dat, int8_t index);
	void list_e_reset(const list_st_scan_type *tab, int8_t index);
	int8_t list_e_scan_next(const list_st_scan_type *tab, int8_t now);
	int8_t list_e_scan_fore(const list_st_scan_type *tab, int8_t now);
	int8_t list_e_amount(const list_st_scan_type *tab);

#ifdef __cplusplus
}
#endif

#endif 
